package com.eastfair.pay.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eastfair.annotation.model.EchoVO;
import com.eastfair.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Du Xiaobo
 * @date 2023/4/23 8:54
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pay_jy_log")
@ApiModel(value = "JyLog", description = "荆艺调用日志")
@AllArgsConstructor
public class JyLog  extends Entity<Long> implements EchoVO {
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Map<String, Object> echoMap = new HashMap<>();
    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @TableField(value = "is_enabled")
    @Excel(name = "是否启用：1是；0否")
    private Integer isEnabled;

    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @TableField(value = "is_deleted")
    @Excel(name = "是否删除：1是；0否")
    private Integer isDeleted;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @TableField(value = "project_id")
    @Excel(name = "项目id")
    private Long projectId;

    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @TableField(value = "subsystem_id")
    @Excel(name = "子系统id")
    private Long subsystemId;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @TableField(value = "tenant_id")
    @Excel(name = "租户id")
    private Long tenantId;

    /**
     * 是否调用成功：1是；0否
     */
    @ApiModelProperty(value = "是否调用成功：1是；0否")
    @TableField(value = "is_success")
    @Excel(name = "是否调用成功：1是；0否")
    private Integer isSuccess;

    /**
     * 方法名称
     */
    @ApiModelProperty(value = "方法名称")
    @TableField(value = "method_name")
    @Excel(name = "方法名称")
    private String methodName;


    /**
     * 关联表名
     */
    @ApiModelProperty(value = "关联表名")
    @TableField(value = "table_name")
    @Excel(name = "关联表名")
    private String tableName;

    /**
     * 关联Id
     */
    @ApiModelProperty(value = "关联Id")
    @TableField(value = "link_id")
    @Excel(name = "关联Id")
    private String linkId;

    /**
     * 请求参数
     */
    @ApiModelProperty(value = "请求参数")
    @TableField(value = "request_parameter")
    @Excel(name = "请求参数")
    private String requestParameter;


    /**
     * 响应结果
     */
    @ApiModelProperty(value = "响应结果")
    @TableField(value = "response_results")
    @Excel(name = "响应结果")
    private String responseResults;

}
